/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: jse2204 - For8
 * <p>Powered by webrx On 2022-09-05 14:02:54
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class For8 {
    public static void main(String[] args) {
        for (int a = 1; a <= 9; a++) {
            for (int b = 1; b <= a; b++) {
                System.out.printf("%d * %d = %2d  ", a, b, a * b);
            }
            System.out.println();
        }

        for (int a = 8; a >= 1; a--) {
            for (int b = 1; b <= a; b++) {
                System.out.printf("%d * %d = %2d  ", a, b, a * b);
            }
            System.out.println();
        }
    }
}
